import Layout from "@/layout";

/** 
 * 库存模块路由配置
 * 路径: /inventory
 * 包含功能: 即时库存、出入库明细
 */
export default {
    path: "/inventory",
    component: Layout,
    redirect: "/inventory/immediateInventory",
    alwaysShow: true,
    name: "inventory",
    meta: {
        title: "库存管理", 
        icon: "list" // 建议使用库存图标
    },
    children: [
        // 即时库存
        {
            path: "/inventory/immediateInventory",
            component: () => import("@/views/inventory/immediateInventory.vue"),
            name: "immediateInventory",
            meta: { 
                title: "即时库存", 
                icon: "list" 
            }
        },
        // 出入库明细
        {
            path: "/inventory/inAndOutDetail",
            component: () => import("@/views/inventory/inAndOutDetail.vue"),
            name: "inAndOutDetail",
            meta: { 
                title: "出入库明细", 
                icon: "list" 
            }
        }
    ]
};